<script setup lang="ts">
import { onMounted } from 'vue';
import type { UserType } from './types/user'
import { instance } from '@/utils/request'

onMounted(async() => {
  const res = await instance<UserType>({
    url: '/login/password',
    method: 'POST',
    data: {
      mobile: '13230000001',
      password: 'abc12345'
    }
  })
  console.log(res);
  
})
</script>

<template>
<router-view></router-view>
</template>

<style lang="less" scoped>

</style>
